package com.shangma.utils;

import java.util.Timer;
import java.util.TimerTask;

public class TimerTaskTet {
    public static void main(String[] args) {
        TimerTask timerTask = new MyWeacherTask();

        Timer timer = new Timer();
        // 延迟5秒执行,每间隔3秒执行一次
        timer.schedule(timerTask,5000,3000);
    }
}
